﻿<vw:View x:Class="Modules.Bing.MapView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vw="clr-namespace:sonic.Samples.Infrastructure.Views;assembly=Infrastructure"
    xmlns:bing="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"
    xmlns:lc="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl.Common">
    <vw:View.Resources>
        <bing:ApplicationIdCredentialsProvider x:Key="BingCredentials" ApplicationId="AhSKkPRsDPOSzUfkpWCC-HZsrYLj9c5hFTH2lrHkKjierNn2zCdvUWMC4NeZ639m"/>
    </vw:View.Resources>
    <Grid x:Name="LayoutRoot" Background="White">
        <bing:Map CredentialsProvider="{StaticResource BingCredentials}" 
                  Margin="10" VerticalAlignment="Stretch"
                  ZoomLevel="10" Center="{Binding CurrentLocation}">
            <bing:Pushpin Location="{Binding CurrentLocation}" />
        </bing:Map>
    </Grid>
</vw:View>
